import { ProLayoutProps } from '@ant-design/pro-components';
import { BG_COLOR, COLOR_PRIMARY, COLOR_TEXT_BASE } from './themeToken';

const Settings: ProLayoutProps & {
  pwa?: boolean;
  logo?: string;
} = {
  navTheme: 'light',
  // 拂晓蓝
  colorPrimary: COLOR_PRIMARY,
  layout: 'mix',
  contentWidth: 'Fluid',
  fixedHeader: false,
  fixSiderbar: true,
  colorWeak: false,
  pwa: true,
  logo: '/logo.png',
  iconfontUrl: '/scripts/iconfont.js?v=2',
  token: {
    bgLayout: BG_COLOR,
    header: {
      colorBgHeader: '#fff',
      heightLayoutHeader: 60,
    },
    sider: {
      colorTextMenuSelected: COLOR_PRIMARY,
      colorMenuBackground: '#fff',
      colorBgMenuItemSelected: 'rgba(26,108,254, 0.1)',
      colorTextMenu: COLOR_TEXT_BASE,
      colorTextMenuItemHover: COLOR_PRIMARY,
    },
    pageContainer: {
      paddingInlinePageContainerContent: 30,
    },
  },
  menu: {
    locale: false, // 禁用多语言功能
  },
};

export default Settings;
